﻿<UserControl x:Class="HelloWorld.GreetModule.GreetView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:l="clr-namespace:HelloWorld.GreetModule"
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300" xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity" xmlns:my="clr-namespace:Codeplex.KinkumaFramework;assembly=KinkumaFramework.NET4">
    <UserControl.DataContext>
        <l:GreetViewModel />
    </UserControl.DataContext>
    <i:Interaction.Behaviors>
        <my:InjectToViewModelBehavior />
    </i:Interaction.Behaviors>
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto" />
            <ColumnDefinition Width="194*" />
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="166*" />
        </Grid.RowDefinitions>
        <Label Content="名前：" Name="label1" />
        <StackPanel Grid.ColumnSpan="2" Grid.Row="1" Name="stackPanel1">
            <Button Content="Greet" Name="button1" Command="{Binding Path=GreetCommand}" />
        </StackPanel>
        <TextBox Grid.Column="1" Name="textBox1" Text="{Binding Path=InputText.Value, ValidatesOnDataErrors=True, UpdateSourceTrigger=PropertyChanged}" />
    </Grid>
</UserControl>
